﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using OpenQA.Selenium;
using OpenQA.Selenium.Firefox;
using OpenQA.Selenium.Chrome;


namespace TestFramework
{
    public static class Browser
    {

        static IWebDriver webDriver = new ChromeDriver(@"c:\users\darek\documents\visual studio 2012\Projects\TestFramework\TestFramework\Drivers\");

        public static ISearchContext Driver
        {

            get { return webDriver; }
        }

        public static string Ttitle
        {
            get { return webDriver.Title; }
        }

        public static void GoTo(string Url)
        {
            webDriver.Url = Url;
        }

        public static void Close()
        {
            webDriver.Close();
        }

    }
}
